package com.situ.study.day8;

/**
 * Java是单继承
 * Object是虽有类的父类
 */
public class Person/* extends Object*/{
    protected int id;
    protected String name;
    protected int age;
    //double height;


    public Person() {
        super();
        System.out.println("Person.Person");
    }

    public Person(int id, String name, int age) {
        //super();
        this.id = id;
        this.name = name;
        this.age = age;
    }

    public void show() {
        System.out.println("id是"+this.id+"的"+this.name+"，他的年龄是"+this.age);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
